package br.pucrio.inf.les.SPLAnalyser.impl.squidplugin.query.metricas;

public class Artifact {
	public String type;
	public String operation;
	public String name;
	public String path;
	
	public Artifact(String type, String name, String path, String operation) {
		this.name = name;
		this.path = path;
		this.type = type;
		this.operation = operation;
	}

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Artifact) {
			Artifact asset = (Artifact) obj;
			if(asset.name.equals(name) && asset.path.equals(path)) {
				return true;
			}
		}
		return false;
	}
	
	@Override
	public String toString() {
		return "TYPE="+type+";NAME="+name+";PATH="+path+";OPERATION="+operation;
	}
}
